package com.usst.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.usst.entity.PostLink;
import com.usst.repository.PostLinkRepository;
import com.usst.service.PostLinkService;

@Service
public class PostLinkServiceImpl implements PostLinkService{
	
	@Autowired
	private PostLinkRepository postLinkRepo;

	@Override
	public PostLink save(PostLink postLink) {
		return postLinkRepo.save(postLink);
	}

	@Override
	public PostLink update(PostLink postLink){
		return postLinkRepo.save(postLink);
	}

	@Override
	@Transactional
	public void delete(PostLink postLink) {
		postLinkRepo.delete(postLink);
	}

}
